﻿@model DBMS.Models.Table

@{
    ViewBag.Title = "CreateTable";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>CreateTable</h2>



@using (Html.BeginForm())
{
    string databaseId = ViewBag.Database.Index.ToString();
    string databaseName = ViewBag.Database.Name;
    
    @Html.Hidden("databaseId", databaseId)
    @Html.Hidden("databaseName", databaseName);
    <div>@Html.LabelFor(m => m.Name)</div>
    <div>@Html.TextBoxFor(m => m.Name)</div>
    
    <input type="submit" value="Save" />
}

